import request from '@/utils/request'

export function listNews() {
  return request({
    url: '/management/news/listNews',
    method: 'get'
  })
}

export function adminListNews(query) {
  return request({
    url: '/management/news/adminListNews',
    method: 'get',
    params: query
  })
}

export function insertNews(data) {
  return request({
    url: '/management/news/insertNews',
    method: 'post',
    data
  })
}

export function deleteNews(query) {
  return request({
    url: '/management/news/deleteNews',
    method: 'post',
    params: query
  })
}
